package com.controller;

import com.entity.Response;
import com.service.DashboardService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/dashboard")
public class DashboardController {

    @Resource
    private DashboardService dashboardService;


    @GetMapping
    public Response getData() {
        return new Response().setSuccess().appendMsg("number", dashboardService.getData());
    }
}
